# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=sympow
pkgver=2.023.6
pkgrel=1
pkgdesc="Program for computing special values of symmetric power elliptic curve L-functions"
url="https://gitlab.com/rezozer/forks/sympow"
# blocked by pari
arch="all !armhf !armv7 !x86"
license="BSD-2-Clause"
depends="pari"
makedepends="bash help2man"
subpackages="$pkgname-doc"
source="https://gitlab.com/rezozer/forks/sympow/-/archive/v$pkgver/sympow-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

prepare() {
	default_prepare
	sed -i "s|VERBOSE_DEFAULT 1|VERBOSE_DEFAULT 0|" sympow.h
}

build() {
	export CFLAGS="${CFLAGS/-Os/-O3}" # gotta go fast

	PREFIX=/usr bash ./Configure
	make
}

check() {
	./sympow -help
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
efe3b09fff0629e136b029ea615aa09ac1a4f225c06636d653ac921c7de01bf75e2b392a138c3c1af92f2b4f889f5949beeeba5b6e5e6b49e02c605bb9c16ceb  sympow-v2.023.6.tar.gz
"
